#ifndef SYS_SOCKET_H_INCLUDED
#define SYS_SOCKET_H_INCLUDED

#ifdef _WIN32
#   include <windows.h>
#   ifndef socklen_t
#       define socklen_t  int
#   endif
#else
#   include <sys/socket.h>
#   include <arpa/inet.h>
#   include <netinet/tcp.h>
#   include <netinet/in.h>
#   include <unistd.h>
#   undef closesocket
#   define closesocket close
#endif

#endif // SYS_SOCKET_H_INCLUDED
